package com.sixth.entity;

import java.io.Serializable;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

/**
 * goods
 * @author 
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Goods implements Serializable {
    private Integer goodsid;

    /**
     * 商品名称
     */
    private String goodsname;

    /**
     * 键盘布局
     */
    private String layout;

    /**
     * 键帽材质
     */
    private String keycapid;

    /**
     * 键盘颜色
     */
    private String keyboardcolorid;

    /**
     * 轴体类型
     */
    private String shafttype;

    /**
     * 轴体选择
     */
    private String shaftchooseid;

    /**
     * 接口类型
     */
    private String interfacetype;

    /**
     * 背光颜色
     */
    private String backlightcolorid;

    /**
     * 商品进价
     */
    private Double cprice;

    /**
     * 商品价格
     */
    private Double sprice;

    /**
     * 上下架状态
     */
    private String state;

    /**
     * 商品图片
     */
    private String url;

    private Keycap keycap;

    private Keyboardcolor keyboardcolor;

    private Backlightcolor backlightcolor;

    private Shaftchoose shaftchoose;

    private MultipartFile main;
    private List<Branch> branches;
    private String branchname;
    private Integer branchid;
    private int counts;
    private Integer chuKuNum;
    private Integer panDianNum;
    private Integer baoSunNum;
    private Bgoods bgoods;
    private Branch branch;
    private Warehousing warehousing;
    private Warehousings warehousings;

    public MultipartFile getMain() {
        return this.main;
    }

    public Integer getGoodsid() {
        return this.goodsid;
    }

    public String getGoodsname() {
        return this.goodsname;
    }

    public String getLayout() {
        return this.layout;
    }

    public String getKeycapid() {
        return this.keycapid;
    }

    public String getKeyboardcolorid() {
        return this.keyboardcolorid;
    }

    public String getShafttype() {
        return this.shafttype;
    }

    public String getShaftchooseid() {
        return this.shaftchooseid;
    }

    public String getInterfacetype() {
        return this.interfacetype;
    }

    public String getBacklightcolorid() {
        return this.backlightcolorid;
    }

    public Double getCprice() {
        return this.cprice;
    }

    public Double getSprice() {
        return this.sprice;
    }

    public String getState() {
        return this.state;
    }

    public String getUrl() {
        return this.url;
    }

    public Keycap getKeycap() {
        return this.keycap;
    }

    public Keyboardcolor getKeyboardcolor() {
        return this.keyboardcolor;
    }

    public Backlightcolor getBacklightcolor() {
        return this.backlightcolor;
    }

    public Shaftchoose getShaftchoose() {
        return this.shaftchoose;
    }

    public List<Branch> getBranches() {
        return this.branches;
    }

    public String getBranchname() {
        return this.branchname;
    }

    public Integer getBranchid() {
        return this.branchid;
    }

    public int getCounts() {
        return this.counts;
    }

    public Integer getChuKuNum() {
        return this.chuKuNum;
    }

    public Integer getPanDianNum() {
        return this.panDianNum;
    }

    public Integer getBaoSunNum() {
        return this.baoSunNum;
    }

    public Bgoods getBgoods() {
        return this.bgoods;
    }

    public Branch getBranch() {
        return this.branch;
    }

    public Warehousing getWarehousing() {
        return this.warehousing;
    }

    public Warehousings getWarehousings() {
        return this.warehousings;
    }

    public void setGoodsid(Integer goodsid) {
        this.goodsid = goodsid;
    }

    public void setGoodsname(String goodsname) {
        this.goodsname = goodsname;
    }

    public void setLayout(String layout) {
        this.layout = layout;
    }

    public void setKeycapid(String keycapid) {
        this.keycapid = keycapid;
    }

    public void setKeyboardcolorid(String keyboardcolorid) {
        this.keyboardcolorid = keyboardcolorid;
    }

    public void setShafttype(String shafttype) {
        this.shafttype = shafttype;
    }

    public void setShaftchooseid(String shaftchooseid) {
        this.shaftchooseid = shaftchooseid;
    }

    public void setInterfacetype(String interfacetype) {
        this.interfacetype = interfacetype;
    }

    public void setBacklightcolorid(String backlightcolorid) {
        this.backlightcolorid = backlightcolorid;
    }

    public void setCprice(Double cprice) {
        this.cprice = cprice;
    }

    public void setSprice(Double sprice) {
        this.sprice = sprice;
    }

    public void setState(String state) {
        this.state = state;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public void setKeycap(Keycap keycap) {
        this.keycap = keycap;
    }

    public void setKeyboardcolor(Keyboardcolor keyboardcolor) {
        this.keyboardcolor = keyboardcolor;
    }

    public void setBacklightcolor(Backlightcolor backlightcolor) {
        this.backlightcolor = backlightcolor;
    }

    public void setShaftchoose(Shaftchoose shaftchoose) {
        this.shaftchoose = shaftchoose;
    }

    public void setMain(MultipartFile main) {
        this.main = main;
    }

    public void setBranches(List<Branch> branches) {
        this.branches = branches;
    }

    public void setBranchname(String branchname) {
        this.branchname = branchname;
    }

    public void setBranchid(Integer branchid) {
        this.branchid = branchid;
    }

    public void setCounts(int counts) {
        this.counts = counts;
    }

    public void setChuKuNum(Integer chuKuNum) {
        this.chuKuNum = chuKuNum;
    }

    public void setPanDianNum(Integer panDianNum) {
        this.panDianNum = panDianNum;
    }

    public void setBaoSunNum(Integer baoSunNum) {
        this.baoSunNum = baoSunNum;
    }

    public void setBgoods(Bgoods bgoods) {
        this.bgoods = bgoods;
    }

    public void setBranch(Branch branch) {
        this.branch = branch;
    }

    public void setWarehousing(Warehousing warehousing) {
        this.warehousing = warehousing;
    }

    public void setWarehousings(Warehousings warehousings) {
        this.warehousings = warehousings;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof Goods)) {
            return false;
        } else {
            Goods other = (Goods)o;
            if (!other.canEqual(this)) {
                return false;
            } else if (this.getCounts() != other.getCounts()) {
                return false;
            } else {
                label349: {
                    Object this$goodsid = this.getGoodsid();
                    Object other$goodsid = other.getGoodsid();
                    if (this$goodsid == null) {
                        if (other$goodsid == null) {
                            break label349;
                        }
                    } else if (this$goodsid.equals(other$goodsid)) {
                        break label349;
                    }

                    return false;
                }

                label342: {
                    Object this$cprice = this.getCprice();
                    Object other$cprice = other.getCprice();
                    if (this$cprice == null) {
                        if (other$cprice == null) {
                            break label342;
                        }
                    } else if (this$cprice.equals(other$cprice)) {
                        break label342;
                    }

                    return false;
                }

                Object this$sprice = this.getSprice();
                Object other$sprice = other.getSprice();
                if (this$sprice == null) {
                    if (other$sprice != null) {
                        return false;
                    }
                } else if (!this$sprice.equals(other$sprice)) {
                    return false;
                }

                label328: {
                    Object this$branchid = this.getBranchid();
                    Object other$branchid = other.getBranchid();
                    if (this$branchid == null) {
                        if (other$branchid == null) {
                            break label328;
                        }
                    } else if (this$branchid.equals(other$branchid)) {
                        break label328;
                    }

                    return false;
                }

                Object this$chuKuNum = this.getChuKuNum();
                Object other$chuKuNum = other.getChuKuNum();
                if (this$chuKuNum == null) {
                    if (other$chuKuNum != null) {
                        return false;
                    }
                } else if (!this$chuKuNum.equals(other$chuKuNum)) {
                    return false;
                }

                label314: {
                    Object this$panDianNum = this.getPanDianNum();
                    Object other$panDianNum = other.getPanDianNum();
                    if (this$panDianNum == null) {
                        if (other$panDianNum == null) {
                            break label314;
                        }
                    } else if (this$panDianNum.equals(other$panDianNum)) {
                        break label314;
                    }

                    return false;
                }

                Object this$baoSunNum = this.getBaoSunNum();
                Object other$baoSunNum = other.getBaoSunNum();
                if (this$baoSunNum == null) {
                    if (other$baoSunNum != null) {
                        return false;
                    }
                } else if (!this$baoSunNum.equals(other$baoSunNum)) {
                    return false;
                }

                Object this$goodsname = this.getGoodsname();
                Object other$goodsname = other.getGoodsname();
                if (this$goodsname == null) {
                    if (other$goodsname != null) {
                        return false;
                    }
                } else if (!this$goodsname.equals(other$goodsname)) {
                    return false;
                }

                Object this$layout = this.getLayout();
                Object other$layout = other.getLayout();
                if (this$layout == null) {
                    if (other$layout != null) {
                        return false;
                    }
                } else if (!this$layout.equals(other$layout)) {
                    return false;
                }

                label286: {
                    Object this$keycapid = this.getKeycapid();
                    Object other$keycapid = other.getKeycapid();
                    if (this$keycapid == null) {
                        if (other$keycapid == null) {
                            break label286;
                        }
                    } else if (this$keycapid.equals(other$keycapid)) {
                        break label286;
                    }

                    return false;
                }

                label279: {
                    Object this$keyboardcolorid = this.getKeyboardcolorid();
                    Object other$keyboardcolorid = other.getKeyboardcolorid();
                    if (this$keyboardcolorid == null) {
                        if (other$keyboardcolorid == null) {
                            break label279;
                        }
                    } else if (this$keyboardcolorid.equals(other$keyboardcolorid)) {
                        break label279;
                    }

                    return false;
                }

                Object this$shafttype = this.getShafttype();
                Object other$shafttype = other.getShafttype();
                if (this$shafttype == null) {
                    if (other$shafttype != null) {
                        return false;
                    }
                } else if (!this$shafttype.equals(other$shafttype)) {
                    return false;
                }

                label265: {
                    Object this$shaftchooseid = this.getShaftchooseid();
                    Object other$shaftchooseid = other.getShaftchooseid();
                    if (this$shaftchooseid == null) {
                        if (other$shaftchooseid == null) {
                            break label265;
                        }
                    } else if (this$shaftchooseid.equals(other$shaftchooseid)) {
                        break label265;
                    }

                    return false;
                }

                label258: {
                    Object this$interfacetype = this.getInterfacetype();
                    Object other$interfacetype = other.getInterfacetype();
                    if (this$interfacetype == null) {
                        if (other$interfacetype == null) {
                            break label258;
                        }
                    } else if (this$interfacetype.equals(other$interfacetype)) {
                        break label258;
                    }

                    return false;
                }

                Object this$backlightcolorid = this.getBacklightcolorid();
                Object other$backlightcolorid = other.getBacklightcolorid();
                if (this$backlightcolorid == null) {
                    if (other$backlightcolorid != null) {
                        return false;
                    }
                } else if (!this$backlightcolorid.equals(other$backlightcolorid)) {
                    return false;
                }

                Object this$state = this.getState();
                Object other$state = other.getState();
                if (this$state == null) {
                    if (other$state != null) {
                        return false;
                    }
                } else if (!this$state.equals(other$state)) {
                    return false;
                }

                label237: {
                    Object this$url = this.getUrl();
                    Object other$url = other.getUrl();
                    if (this$url == null) {
                        if (other$url == null) {
                            break label237;
                        }
                    } else if (this$url.equals(other$url)) {
                        break label237;
                    }

                    return false;
                }

                label230: {
                    Object this$keycap = this.getKeycap();
                    Object other$keycap = other.getKeycap();
                    if (this$keycap == null) {
                        if (other$keycap == null) {
                            break label230;
                        }
                    } else if (this$keycap.equals(other$keycap)) {
                        break label230;
                    }

                    return false;
                }

                Object this$keyboardcolor = this.getKeyboardcolor();
                Object other$keyboardcolor = other.getKeyboardcolor();
                if (this$keyboardcolor == null) {
                    if (other$keyboardcolor != null) {
                        return false;
                    }
                } else if (!this$keyboardcolor.equals(other$keyboardcolor)) {
                    return false;
                }

                label216: {
                    Object this$backlightcolor = this.getBacklightcolor();
                    Object other$backlightcolor = other.getBacklightcolor();
                    if (this$backlightcolor == null) {
                        if (other$backlightcolor == null) {
                            break label216;
                        }
                    } else if (this$backlightcolor.equals(other$backlightcolor)) {
                        break label216;
                    }

                    return false;
                }

                Object this$shaftchoose = this.getShaftchoose();
                Object other$shaftchoose = other.getShaftchoose();
                if (this$shaftchoose == null) {
                    if (other$shaftchoose != null) {
                        return false;
                    }
                } else if (!this$shaftchoose.equals(other$shaftchoose)) {
                    return false;
                }

                label202: {
                    Object this$main = this.getMain();
                    Object other$main = other.getMain();
                    if (this$main == null) {
                        if (other$main == null) {
                            break label202;
                        }
                    } else if (this$main.equals(other$main)) {
                        break label202;
                    }

                    return false;
                }

                Object this$branches = this.getBranches();
                Object other$branches = other.getBranches();
                if (this$branches == null) {
                    if (other$branches != null) {
                        return false;
                    }
                } else if (!this$branches.equals(other$branches)) {
                    return false;
                }

                Object this$branchname = this.getBranchname();
                Object other$branchname = other.getBranchname();
                if (this$branchname == null) {
                    if (other$branchname != null) {
                        return false;
                    }
                } else if (!this$branchname.equals(other$branchname)) {
                    return false;
                }

                Object this$bgoods = this.getBgoods();
                Object other$bgoods = other.getBgoods();
                if (this$bgoods == null) {
                    if (other$bgoods != null) {
                        return false;
                    }
                } else if (!this$bgoods.equals(other$bgoods)) {
                    return false;
                }

                label174: {
                    Object this$branch = this.getBranch();
                    Object other$branch = other.getBranch();
                    if (this$branch == null) {
                        if (other$branch == null) {
                            break label174;
                        }
                    } else if (this$branch.equals(other$branch)) {
                        break label174;
                    }

                    return false;
                }

                label167: {
                    Object this$warehousing = this.getWarehousing();
                    Object other$warehousing = other.getWarehousing();
                    if (this$warehousing == null) {
                        if (other$warehousing == null) {
                            break label167;
                        }
                    } else if (this$warehousing.equals(other$warehousing)) {
                        break label167;
                    }

                    return false;
                }

                Object this$warehousings = this.getWarehousings();
                Object other$warehousings = other.getWarehousings();
                if (this$warehousings == null) {
                    if (other$warehousings != null) {
                        return false;
                    }
                } else if (!this$warehousings.equals(other$warehousings)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof Goods;
    }




}